import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import './assets/less/index.less'
import store from './store'
import router from './router'
import directive from '@/directive'
import dayjs from 'dayjs'
import 'dayjs/locale/zh-cn'
import request from '@/utils/request'  // 新增导入封装的axios实例

dayjs.locale('zh-cn')

Vue.config.productionTip = false
Vue.prototype.$dayjs = dayjs
Vue.prototype.$http = request  // 新增：挂载到Vue原型

Vue.use(ElementUI, { size: 'mini' })
Vue.use(directive)

new Vue({
  store,
  router,
  render: (h) => h(App)
}).$mount('#app')
